package dcdroplet;

// Import Java JDK Classes
import java.util.Date;

/**
 * @author dca
 */
public class ConsoleAppenderProperties extends AppenderProperties {
	@Override
	public void log(String tag, String msg, String msgFmt, String className, long timeStamp) {
		System.err.println(
			msgFmt.replace("${appender_name}", this.getAppenderName())
			      .replace("${class_name}",    className)
			      .replace("${tag_name}",      tag)
			      .replace("${date}",          DATE.format(new Date(timeStamp)))
			      .replace("${time}",          TIME.format(new Date(timeStamp)))
			      .replace("${message}",       msg)
		);
	} // END log
} // END class ConsoleAppenderProperties
